Skip to content

Conversation

@pgalhardo
Copy link
Contributor

Description

This PR introduces responsive justify-items utilities to Vuetify’s utility system and updates the documentation accordingly.

Changes included:

  • Added justify-items utilities in _utilities.scss with responsive support.
  • Updated the Flex documentation (flex.md) to include all new justify-items-* classes.

Markup / Playground

You can test the new utilities using the following Vue Playground:

<template>
  <v-app>
    <v-container>
      <h3>justify-items examples</h3>
      <div class="d-flex flex-column ga-4">
        <div class="grid justify-items-start">
          <div class="item">start</div>
          <div class="item">start</div>
        </div>
        <div class="grid justify-items-end">
          <div class="item">end</div>
          <div class="item">end</div>
        </div>
        <div class="grid justify-items-center">
          <div class="item">center</div>
          <div class="item">center</div>
        </div>
        <div class="grid justify-items-stretch">
          <div class="item">stretch</div>
          <div class="item">stretch</div>
        </div>
      </div>
    </v-container>
  </v-app>
</template>

<style scoped>
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
  gap: 8px;
  border: 1px solid #ccc;
}

.item {
  background: #ddd;
  padding: 8px;
  text-align: center;
  min-width: 40px;
}
</style>

@J-Sek
Copy link
Contributor

J-Sek commented Nov 21, 2025

PRs with new stuff should target dev branch. Would it be a problem for you to change the target and rebase if necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants